package com.bdqn.t313.reflect;

public class Student {

    private int id;

    static final String name = "张贞";

    protected int age;

    public String message;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public static String getName() {
        return name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Student() {

    }

    public Student(int id, int age) {
        this.id = id;
        this.age = age;
    }

    private Student(int id, int age, String message) {
        this.id = id;
        this.age = age;
        this.message = message;
    }

    public void show(){
        System.out.println("大家好，我的姓名是："+getName()+"，今年："+getAge());
    }


}
